<template>
  <div>
    <t-collapse v-model="activeNames" accordion>
      <t-collapse-item name="1">
        <template #title>
          Consistency
          <i class="t-icon icon-zhibeidangao" />
        </template>
        <div>
          Consistent with real life: in line with the process and logic of real
          life, and comply with languages and habits that the users are used to;
        </div>
      </t-collapse-item>
      <t-collapse-item title="Feedback" name="2">
        <template #icon="{ isActive }">
          <i
            :class="`t-icon ${
              isActive ? 'icon-youbianjiantou' : 'icon-youbian-tianchong'
            }`"
          />
        </template>
        <div>
          Operation feedback: enable the users to clearly perceive their
          operations by style updates and interactive effects;
        </div>
      </t-collapse-item>
      <t-collapse-item title="Efficiency" name="3">
        <div>
          Simplify the process: keep operating process simple and intuitive;
        </div>
      </t-collapse-item>
      <t-collapse-item title="Controllability" name="4">
        <div>
          Decision making: giving advices about operations is acceptable, but do
          not make decisions for the users;
        </div>
      </t-collapse-item>
    </t-collapse>
  </div>
</template>
<script setup>
import { ref } from "vue";
const activeNames = ref([]);
</script>
